<extend name="Layout/index" />
<block name="breadcrumb-01">
	<li>
		<i class="icon-home home-icon"></i>
		<a href="#">首页</a>
	</li>
	<li class="active">帖子管理</li>
</block>

<block name="breadcrumb-02">
	<h1>
		帖子管理
		<small>
			<i class="icon-double-angle-right"></i>
			 分类显示
		</small>
	</h1>
</block>
<block name='main'>
	<link rel="stylesheet" href="__PUBLIC__/Admin/Home/css/TypeIndex.css">
	<script type="text/javascript" src="__PUBLIC__/Admin/Js/jquery-2.1.4.min.js"></script>

	<div id="BBSleft">
		<volist name="list" id="vo">
			
			<h3><{$vo.tname}></h3>
	        <ul>
	        <volist name="vo['zilei']" id="k">
	            <li><a><{$k.tname}></a><input type="hidden" value="<{$k.tid}>"></li>
	        </volist>
	        </ul>
	    </volist>
	</div>

	<div id="BBSright"></div>





	<script>
		$(function(){
            $('#BBSleft ul:first').show();
            $('#BBSleft h3').click(function(){
                $(this).next('ul').slideDown(100).siblings('ul').slideUp(100);
            })
            $('#BBSleft ul li').click(function(){
            	var tid = $(this).children('input').val();
            	
            	$.ajax({
            		type:'GET',
            		url:"<{:U('BBSinvit/DoAjax')}>",
            		data:'tid='+tid,
            		async:false,
            		success:function(data){
            			$('#BBSright').html(data);
            		},
            	})
            })

        })
	</script>
</block>